/* Reset dasar untuk margin dan padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Styling header dan navigasi */
header {
    background: linear-gradient(to right, #ff6f61, #ffbc00);
    padding: 20px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav ul li {
    margin: 0 20px;
}

header nav ul li a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

header nav ul li a:hover {
    background-color: #ff4081;
    transform: scale(1.1);
}

/* Styling untuk section */
.section {
    padding: 80px 20px 40px;
    text-align: center;
    border-radius: 8px;
    margin-top: 60px; /* Menghindari tumpang tindih dengan navbar */
}

.home {
    background: linear-gradient(to bottom, #f9e2a8, #ffcccb);
}

.about-us {
    background: linear-gradient(to bottom, #c6fffd, #f9e1ff);
}

.members {
    background: linear-gradient(to bottom, #ffccf9, #f3e5f5);
}

.memories {
    background: linear-gradient(to bottom, #fac1f2, #fcc2c2);
}

.contact {
    background: linear-gradient(to bottom, #fff7b7, #ffb6b6);
}

/* Styling untuk heading dan paragraf */
h1, h2 {
    color: #5f4b8b;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 36px;
}

p {
    font-size: 18px;
    max-width: 750px;
    margin: 0 auto 20px;
    font-style: italic;
}

/* Styling untuk grid anggota */
.members-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.member-card {
    background: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.member-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.member-info p {
    font-size: 16px;
    color: #777;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Styling untuk galeri kenangan */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.gallery-item p {
    font-size: 16px;
    color: #333;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

/* Styling untuk footer */
footer {
    background: #ff6f61;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
}

/* Responsif untuk perangkat mobile */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
    }

    .section {
        padding: 40px 10px;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }
}
